﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Reflection;
using System.Text;
using System.Transactions;
using T.FAS.Runtime.Metadata.Entity;
using T.FAS.Runtime.Base.Entity;
using T.ServiceComponent.DAC.Service;

namespace T.FAS.Runtime.Action.Dao
{
    public class FASRouterDao : DaoService<FASRouter>
    {
        public override string TableName => "FAS_Router";
        public override string IDColumnName => "ID";

        public FASRouterDao() : base()
        {
            DBName = "TFAS";
        }
        public override Dictionary<string, PropertyInfo> GetColumns()
        {
            return DaoServiceExtension.GetAllColumns<ActionMetaData>(base.GetColumns());
        }
        public List<FASRouter> GetActionPluginInfo()
        {
            var sql = @"SELECT * FROM FAS_Router";
            var dataResult = DB.ExecuteDataSet(sql);
            return DataResultConvert.ConvertToFASRouter(dataResult);
        }
    }
}
